﻿object Form10: TForm10
  Left = 0
  Top = 0
  BorderIcons = [biMinimize, biMaximize]
  Caption = #1056#1077#1075#1080#1089#1090#1088#1072#1094#1080#1103' '#1080#1075#1088#1099
  ClientHeight = 515
  ClientWidth = 568
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  OnActivate = FormActivate
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object Label1: TLabel
    Left = 126
    Top = 37
    Width = 37
    Height = 13
    Caption = #1050#1083#1080#1077#1085#1090
  end
  object Label2: TLabel
    Left = 305
    Top = 37
    Width = 7
    Height = 13
    Caption = #1057
  end
  object Label3: TLabel
    Left = 393
    Top = 37
    Width = 13
    Height = 13
    Caption = #1055#1086
  end
  object Label4: TLabel
    Left = 481
    Top = 37
    Width = 31
    Height = 13
    Caption = #1057#1091#1084#1084#1072
  end
  object Label5: TLabel
    Left = 24
    Top = 37
    Width = 26
    Height = 13
    Caption = #1044#1072#1090#1072
  end
  object Label6: TLabel
    Left = 481
    Top = 79
    Width = 38
    Height = 13
    Caption = #1057#1082#1080#1076#1082#1072
    Visible = False
  end
  object Label7: TLabel
    Left = 525
    Top = 101
    Width = 13
    Height = 13
    Caption = '%'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -11
    Font.Name = 'Tahoma'
    Font.Style = [fsBold]
    ParentFont = False
    Visible = False
  end
  object BitBtn1: TBitBtn
    Left = 277
    Top = 56
    Width = 22
    Height = 21
    Caption = '+'
    DoubleBuffered = True
    ParentDoubleBuffered = False
    TabOrder = 0
  end
  object Button1: TButton
    Left = 331
    Top = 96
    Width = 75
    Height = 25
    Caption = #1047#1072#1082#1088#1099#1090#1100
    TabOrder = 1
    OnClick = Button1Click
  end
  object Button3: TButton
    Left = 237
    Top = 96
    Width = 75
    Height = 25
    Caption = #1059#1076#1072#1083#1080#1090#1100
    TabOrder = 2
    OnClick = Button3Click
  end
  object DateTimePicker1: TDateTimePicker
    Left = 305
    Top = 56
    Width = 65
    Height = 21
    Date = 41326.693055555560000000
    Format = 'HH:mm'
    Time = 41326.693055555560000000
    Kind = dtkTime
    ParentShowHint = False
    ShowHint = False
    TabOrder = 3
    OnChange = DateTimePicker1Change
  end
  object DateTimePicker2: TDateTimePicker
    Left = 393
    Top = 56
    Width = 65
    Height = 21
    Date = 41326.693055555560000000
    Format = 'HH:mm'
    Time = 41326.693055555560000000
    Kind = dtkTime
    TabOrder = 4
    OnChange = DateTimePicker2Change
  end
  object Edit1: TEdit
    Left = 481
    Top = 56
    Width = 80
    Height = 21
    ReadOnly = True
    TabOrder = 5
  end
  object Edit2: TEdit
    Left = 24
    Top = 56
    Width = 89
    Height = 21
    ReadOnly = True
    TabOrder = 6
  end
  object Panel1: TPanel
    Left = 0
    Top = 144
    Width = 569
    Height = 373
    Align = alCustom
    Anchors = [akLeft, akTop, akBottom]
    Caption = 'Panel1'
    ShowCaption = False
    TabOrder = 7
    object DBCtrlGrid1: TDBCtrlGrid
      Left = 1
      Top = 1
      Width = 567
      Height = 371
      Align = alClient
      DataSource = DataSource1
      PanelHeight = 23
      PanelWidth = 550
      TabOrder = 0
      RowCount = 16
      object DBEdit1: TDBEdit
        Left = 0
        Top = 0
        Width = 137
        Height = 23
        Align = alLeft
        DataField = 'Customer'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 0
        ExplicitHeight = 21
      end
      object DBEdit2: TDBEdit
        Left = 137
        Top = 0
        Width = 87
        Height = 23
        Align = alLeft
        DataField = 'dategame'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 1
        ExplicitHeight = 21
      end
      object DBEdit3: TDBEdit
        Left = 224
        Top = 0
        Width = 59
        Height = 23
        Align = alLeft
        DataField = 'vremya_id1'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 2
        ExplicitHeight = 21
      end
      object DBEdit4: TDBEdit
        Left = 283
        Top = 0
        Width = 63
        Height = 23
        Align = alLeft
        DataField = 'vremya_id2'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 3
        ExplicitHeight = 21
      end
      object DBEdit5: TDBEdit
        Left = 346
        Top = 0
        Width = 74
        Height = 23
        Align = alLeft
        DataField = 'totalhour'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 4
        ExplicitHeight = 21
      end
      object DBEdit6: TDBEdit
        Left = 420
        Top = 0
        Width = 70
        Height = 23
        Align = alLeft
        DataField = 'summa'
        DataSource = DataSource1
        Enabled = False
        TabOrder = 5
        ExplicitHeight = 21
      end
      object DBCheckBox1: TDBCheckBox
        Left = 490
        Top = 0
        Width = 97
        Height = 23
        Align = alLeft
        Caption = #1056#1072#1089#1095#1077#1090
        DataField = 'paid'
        DataSource = DataSource1
        TabOrder = 6
        ValueChecked = 'True'
        ValueUnchecked = 'False'
        OnMouseUp = DBCheckBox1MouseUp
      end
    end
  end
  object Добавить: TButton
    Left = 132
    Top = 96
    Width = 75
    Height = 25
    Caption = #1044#1086#1073#1072#1074#1080#1090#1100
    TabOrder = 8
    OnClick = ДобавитьClick
  end
  object ComboBox1: TComboBox
    Left = 126
    Top = 56
    Width = 145
    Height = 21
    TabOrder = 9
    OnDropDown = ComboBox1Change
    OnExit = edit3Exit
    OnKeyDown = edit3KeyDown
  end
  object SpinEdit1: TSpinEdit
    Left = 482
    Top = 98
    Width = 37
    Height = 22
    Increment = 5
    MaxValue = 90
    MinValue = 5
    TabOrder = 10
    Value = 5
  end
  object DataSource1: TDataSource
    DataSet = ZakazTable
    OnDataChange = DataSource1DataChange
    Left = 600
    Top = 16
  end
  object ZakazTable: TADOTable
    Active = True
    Connection = DataModule2.Connection
    CursorType = ctStatic
    AfterInsert = ZakazTableAfterInsert
    BeforeEdit = ZakazTableBeforePost
    TableName = 'Zakaz'
    Left = 600
    Top = 88
    object ZakazTableID: TAutoIncField
      FieldName = 'ID'
      ReadOnly = True
      Visible = False
    end
    object ZakazTableuser_id: TIntegerField
      FieldName = 'user_id'
      Visible = False
    end
    object ZakazTablevremya_id1: TDateTimeField
      FieldName = 'vremya_id1'
      DisplayFormat = 'HH:mm'
    end
    object ZakazTablevremya_id2: TDateTimeField
      FieldName = 'vremya_id2'
      DisplayFormat = 'HH:mm'
    end
    object ZakazTabletotalhour: TDateTimeField
      FieldName = 'totalhour'
      DisplayFormat = 'HH:mm'
    end
    object ZakazTabledategame: TDateTimeField
      FieldName = 'dategame'
    end
    object ZakazTablesumma: TIntegerField
      FieldName = 'summa'
    end
    object ZakazTablepaid: TBooleanField
      FieldName = 'paid'
    end
    object ZakazTableCustomer: TStringField
      FieldKind = fkLookup
      FieldName = 'Customer'
      LookupDataSet = DataModule2.CustomersTable
      LookupKeyFields = 'ID'
      LookupResultField = 'Surname'
      KeyFields = 'user_id'
      Size = 25
      Lookup = True
    end
  end
end
